﻿using PrinterMonitorSvc.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace PrinterMonitorSvc
{
    static class Program
    {
        private static Mutex _mutex = null;
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            _mutex = new Mutex(true, "PrinterMonitorSvc", out bool createdNew);
            if (!createdNew)
            {
                MessageBox.Show("The PrinterMonitorSvc program is open. Do not repeat", "SystemTip");
                Environment.Exit(0);
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }
    }
}
